<%@ page contentType="text/html; charset=Windows-31J" language="java" %>
<%@ include file="../inc/common.jsp" %>

<html:html locale="true">
<HEAD>
	<html:base/>
	<META http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
	<TITLE><%=Globals.get("WEB_PAGETITLE")%></TITLE>
</HEAD>
<BODY BGCOLOR=<%=Globals.get("WEB_BODY_BGCOLOR")%> LINK=<%=Globals.get("WEB_BODY_LINK")%> VLINK=<%=Globals.get("WEB_BODY_VLINK")%>>
<CENTER>
<B><FONT SIZE="+1">日報検索画面</FONT></B>
</CENTER>
<HR>
<TABLE border="0">
<TR>
	<TH align="left">検索する条件を設定した後、”検索ボタン”を押してください。</TH>
</TR>
</TABLE>

<html:form action="/search_dailyReport_condition" target="list">
<TABLE cellpadding="1" cellspacing="1" border="1">
<TR>
	<TH align="left">ｷｰﾜｰﾄﾞ</TH>
	<TD><html:text property="keyWord"/></TD>
</TR>
<TR>
	<TH align="left">ﾌﾟﾛｼﾞｪｸﾄ名</TH>
	<TD>
		<select name="projectId">
			<option value="0">--</option>
<logic:iterate id="project" name="projectList" scope="request" indexId="index">
			<bean:define id="pjName" name="project" property="name" type="java.lang.String" />
			<option value="<bean:write name="project" property="projectId"/>"><% if(pjName.length() > 16) { out.write(pjName.substring(0, 16)+"..."); } else { out.write(pjName);} %></option>
</logic:iterate>
		</select>
	</TD>
</TR>
<TR>
	<TH align="left">作業項目</TH>
	<TD>
		<select name="workItemId">
			<option value="0">--</option>
<logic:iterate id="work" name="workItemList" scope="request" indexId="index">
			<bean:define id="wkName" name="work" property="name" type="java.lang.String" />
			<option value="<bean:write name="work" property="workItemId"/>"><% if(wkName.length() > 16) { out.write(wkName.substring(0, 16)+"..."); } else { out.write(wkName);} %></option>
</logic:iterate>
		</select>
	</TD>
</TR>
<TR>
	<TH align="left">氏名</TH>
	<TD>
		<html:select property="staffId">
			<html:option value="0">--</html:option>
			<html:options collection="staffList" property="staffId" labelProperty="name" />
		</html:select>
	</TD>
</TR>
<TR>
	<TH align="left">雇用形態</TH>
	<TD>
		<html:select property="employmentSystem" >
			<html:option value="-1">--</html:option>
			<html:options name="staff" property="employmentSystemId" labelProperty="employmentSystemNames" labelName="staff" />
		</html:select>
	</TD>
</TR>
<TR>
	<TH align="left">検索期間</TH>
	<TD>
		<html:select property="startYear">
			<html:option value="0">--</html:option>
			<html:options name="systemCalendar" property="systemYear" labelProperty="systemYear" labelName="systemCalendar" />
		</html:select>年
		<html:select property="startMonth">
			<html:option value="0">--</html:option>
			<html:options name="systemCalendar" property="systemMonth" labelProperty="systemMonth" labelName="systemCalendar" />
		</html:select>月
		<html:select property="startDay">
			<html:option value="0">--</html:option>
			<html:options name="systemCalendar" property="systemDate" labelProperty="systemDate" labelName="systemCalendar" />
		</html:select>日 ～ 
		<html:select property="endYear">
			<html:option value="0">--</html:option>
			<html:options name="systemCalendar" property="systemYear" labelProperty="systemYear" labelName="systemCalendar" />
		</html:select>年
		<html:select property="endMonth">
			<html:option value="0">--</html:option>
			<html:options name="systemCalendar" property="systemMonth" labelProperty="systemMonth" labelName="systemCalendar" />
		</html:select>月
		<html:select property="endDay">
			<html:option value="0">--</html:option>
			<html:options name="systemCalendar" property="systemDate" labelProperty="systemDate" labelName="systemCalendar" />
		</html:select>日
	</TD>
</TR>
</TABLE>

<TABLE>
<TR>
<TD>
	<html:submit property="search" value="  検索  " />
</TD>
</html:form>

<html:form action="/search_init_dailyReport_condition">
<TD>
	<html:submit property="clear" value="条件ｸﾘｱ" />
</TD>
</html:form>

<html:form action="/search_dailyReport_condition" target="list">
<TD>
	<html:submit property="yesterday" value="前日の日報一覧" />
</TD>
<TD>
	<html:submit property="lastWeek" value="先週の日報一覧" />
</TD>
</html:form>

</TR>
</TABLE>

</BODY>
</html:html>
